﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="HousingChangeReason.aspx.cs"
    Inherits="ZLDC.Estate.PM.HousingChangeReason" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>转盘原因</title>
    <base target="_self"></base>
    <link href="../css/main.css" rel="stylesheet" type="text/css" />
    
    <script src="../js/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
    
    <script src="../js/LexunJS.js" type="text/javascript"></script>
    
</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" border="0" cellpadding="0" cellspacing='1' bgcolor='#a8c7ce'>
        <tr>
            <td colspan="4" bgcolor="#36B4BA">
                <strong>&nbsp;&nbsp;<span id="sTitle"></span></strong>
            </td>
        </tr>
        <tr bgcolor='#FFFFFF'>
            <td height='20' class='STYLE6'>
                转盘原因：
            </td>
            <td height='20'>
                <asp:RadioButtonList ID="rblReason" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="1">已成交</asp:ListItem>
                    <asp:ListItem Value="0" Selected="True">其他</asp:ListItem>
                </asp:RadioButtonList>
            </td>
            <td height='20' class='STYLE6'>
                成交公司:
            </td>
            <td height='20' class='STYLE6'>
                <asp:RadioButtonList ID="rblCompany" runat="server" RepeatDirection="Horizontal">
                    <asp:ListItem Value="XX" Selected="True" >XX</asp:ListItem>
                    <asp:ListItem Value="其他地产">其他地产</asp:ListItem>
                </asp:RadioButtonList>
            </td>
        </tr>
        <tr bgcolor='#FFFFFF'>
            <td height='20' class='STYLE6'>
                成交价格：
            </td>
            <td height='20'>
                <asp:TextBox ID="tbPrice" runat="server"></asp:TextBox>万
            </td>
            <td height='20' colspan="2">
            </td>
        </tr>
        <tr bgcolor='#FFFFFF'>
            <td colspan="4" style="text-align: right;">
                <asp:Button ID="btnOK" runat="server" Text="确定" class="button_bak" OnClientClick="return check();"
                    OnClick="imgBtnOK_Click" Style="cursor: pointer;" />
                <input id="btnReturn" type="button" value="返回" class="button_bak" onclick="window.close();"
                    style="cursor: pointer;" />
                &nbsp; &nbsp;
            </td>
        </tr>
    </table>
    </form>
</body>

<script type="text/javascript">

    $(document).ready(function() {
        var typeid = LexunJS.GetQueryString("typeid"); // typeid 1当前盘转到资料盘 2当前盘转到无效盘
        if (typeid == 1)
            $("#sTitle").text("当前盘转资料盘");
        else
            $("#sTitle").text("当前盘转无效盘");        
    });
    
    function check() {
//        if (Form1.rblReason[0].checked == false && Form1.rblReason[1].checked == false) {
//            alert('请选择转盘原因!');
//            return false;
//        }
//        //如果已经成交请选择成交公司
//        if (Form1.rblReason[0].checked == true) {
//            if (Form1.rblCompany[0].checked == false && Form1.rblCompany[1].checked == false) {
//                alert('请选择成交公司!');
//                return false;
//            }
//        }
//        //成交的请输入成交价格
//        if (Form1.rblReason[0].checked == true && Form1.tbPrice.value == '') {
//            alert('请输入成交价格!');
//            return false;
//        }
//        //成交价检测
//        if (document.getElementById("tbPrice").value != '') {
//            if (!isNumber(document.getElementById("tbPrice").value) && !isMoney(document.getElementById("tbPrice").value)) {
//                alert('价格请输入最多三位小数的数字!');
//                return false;
//            }
//        }

        //return false;
    }
  
</script>

</html>
